﻿@model ingesup_ERP.Models.PersonneView

@{
    ViewBag.Title = "Connexion";
}

<h2>Connexion</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@if ( @ViewData["error"] != null)
{
    <h3>@ViewData["error"]</h3>
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>connexion</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.LOGIN)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LOGIN)
            @Html.ValidationMessageFor(model => model.LOGIN)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MDP)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.MDP)
            @Html.ValidationMessageFor(model => model.MDP)
        </div>

        <p>
            <input type="submit" value="Connexion" />
        </p>
    </fieldset>
}
